import Vue from 'vue'
import VueRouter from 'vue-router'

import HomeLayout from '../views/HomeLayout'//首页、详情布局
import Home from '../views/Home'//首页
import Login from '../views/Login'//登录
import Synopsis from '../views/companySynopsis'//协会简介
import Solution from '../views/companySolution'//协会章程
import Industry from '../views/industryTrends'//行业动态
import Association from '../views/associationTrends'//协会动态
import Member from '../views/memberTrends'//会员动态
import Policy from '../views/policyTrends'//政策动态
import Directory from '../views/memberDirectory'//会员名录
import Information from '../views/informationCenter'//资讯中心详情
import MemberDetail from '../views/memberDetail'//会员名录详情
import ApplicationMember from '../views/applicationMember'//入会申请
import ResourceDonwload from '../views/resourceDonwload'//资料下载
import AssociationNotice from '../views/associationNotice'//协会公告
import NoticeDetail from '../views/noticeDetail'//入会申请
import ParkingGarden from '../views/parkingGarden'//入会申请
import GardenDetail from '../views/gardenDetail'//入会申请

Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'HomeLayout',
    component: HomeLayout,
    children: [
      {
        path: '/',
        name: 'Home',
        component: Home
      },
      {
        path: '/Synopsis',
        name: 'Synopsis',
        component: Synopsis
      },
      {
        path: '/Solution',
        name: 'Solution',
        component: Solution
      },
      {
        path: '/Industry',
        name: 'Industry',
        component: Industry
      },
      {
        path: '/Association',
        name: 'Association',
        component: Association
      }, {
        path: '/Member',
        name: 'Member',
        component: Member
      },
      {
        path: '/Policy',
        name: 'Policy',
        component: Policy
      },
       {
        path: '/Information',
        name: 'Information',
        component: Information
      },
      {
        path: '/Directory',
        name: 'Directory',
        component: Directory
      },
      {
        path: '/MemberDetail',
        name: 'MemberDetail',
        component: MemberDetail
      },
      {
        path: '/ApplicationMember',
        name: 'ApplicationMember',
        component: ApplicationMember
      },
      {
        path: '/ResourceDonwload',
        name: 'ResourceDonwload',
        component: ResourceDonwload
      },
      {
        path: '/AssociationNotice',
        name: 'AssociationNotice',
        component: AssociationNotice
      },
      {
        path: '/NoticeDetail',
        name: 'NoticeDetail',
        component: NoticeDetail
      },
      {
        path: '/ParkingGarden',
        name: 'ParkingGarden',
        component: ParkingGarden
      },
      {
        path: '/GardenDetail',
        name: 'GardenDetail',
        component: GardenDetail
      }
      
    ]
  },
  {
    path: '/Login',
    name: 'Login',
    component: Login,
  },

]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
